package tgc.edu.ljc.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import tgc.edu.ljc.custom.CommonService;
import tgc.edu.ljc.entity.Stu;
import tgc.edu.ljc.repository.StudentRepository;

@Service
public class StudentService extends CommonService<Stu, Integer>{
	@Autowired
	private StudentRepository stuDAO;
	
	public List<Stu> findByTbClassId(Integer classId) {
		return stuDAO.findByTbClassId(classId);
	}

}
